<?php
require('./View/Security.php');
require('./View/ViewFunctions.php');
require('./Controller/AdminCheck.php');

 {
	$query = "SELECT Name, id FROM " . $_POST['table']. " ORDER BY Name ASC";
	$selected= "";
	$primaryKey= 'id';
 }
?>
<form name="update" action="Merge.php" method="post">
Convert All: </br>
<select name="removedID">
	<?php echo createDropDownBox($query, "", $primaryKey); ?>
</select> </br>
To: </br>
<select name="masterID">
	<?php echo createDropDownBox($query, "", $primaryKey); ?>
</select>

<input type="hidden" name="table" value="<?php echo $_POST['table']; ?>">
<input type="submit" name="true" value="Update">
</form>